import App from './App'

// #ifndef VUE3
import Vue from 'vue'

import http from 'utils/request.js'
// console.log(http)
Vue.prototype.$request = http
Vue.config.productionTip = false

// 全局挂载自定义组件
import GoodsList from './components/GoodsList.vue'
Vue.component('goods-list',GoodsList)

App.mpType = 'app'
const app = new Vue({
    ...App
})
require('./utils/urequest.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif